package 标准类;

public class StudentDemo {
    public static void main(String[] args) {
        //带参构造赋值
        Student s1 =new Student();
        s1.show();
        Student s2 =new Student("姜恒星");
        s2.show();
        Student s3 =new Student(18);
        s3.show();
        Student s4 =new Student("姜恒星",18);
        s4.show();

        //无参构造赋值
        s1.setName("姜恒星");
        s1.setAge(30);
        s1.show();
    }
}
